package org.coody.gitee.fuzzer;

import org.coody.gitee.entity.GiteeEntity;
import org.coody.gitee.exception.FuzzerException;
import org.coody.gitee.fuzzer.iface.GiteeFuzzer;
import org.coody.gitee.util.HttpUtil;
import org.coody.gitee.util.HttpUtil.HttpEntity;

public class GiteeStarFuzzer extends GiteeFuzzer{

	@Override
	public void fuzzer(GiteeEntity giteeEntity) throws FuzzerException {
		for(String project:giteeEntity.getProjects()) {
			HttpEntity entity = HttpUtil.Post(project + "/star", "", "utf-8", giteeEntity.getCookie(), giteeEntity.buildHeader());
			System.out.println("Star>>"+giteeEntity.getEmail()+":"+entity.getHtml());
		}
	}
}
